#include "login.h"
#include "ui_login.h"

Login::Login(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Login)
{
    ui->setupUi(this);
}

Login::~Login()
{
    delete ui;
}

void Login::on_pushButton_2_clicked()
{

    Chgpwd *chgpwd = new Chgpwd(this);
    this->hide();
    chgpwd->show();
}

void Login::on_pushButton_clicked()
{
    this->hide();
    MainWindow *main = new MainWindow(this);
    main->show();
}
